package pl.ydp.components.mathcell.mathrecognizer.engine.database.modelsets.math_basic.characters
{
	import pl.ydp.components.mathcell.mathrecognizer.characters.Character;
	import pl.ydp.components.mathcell.mathrecognizer.geometry.classification.PrimitiveType;
	import pl.ydp.components.mathcell.mathrecognizer.model.PrimitivesRelation;
	import pl.ydp.components.mathcell.mathrecognizer.model.RelationDescription;
	import pl.ydp.components.mathcell.mathrecognizer.model.RelationDescriptorType;
	import pl.ydp.components.mathcell.mathrecognizer.model.ShapeModel;
	import pl.ydp.components.mathcell.mathrecognizer.model.descriptors.LocationDescriptor;
	import pl.ydp.components.mathcell.mathrecognizer.model.descriptors.SizeDescriptor;
	import pl.ydp.components.mathcell.mathrecognizer.model.presets.PrimitivePresets;
	
	public class MB_ch_dot
	{
		
		public static const MODELS_COUNT:Number = 1;
		
		//---------------------------------------------------
		
		public static function getModels():Array{
			
			var dotShapeModels:Array = new Array();
			
			dotShapeModels.push(getModel0());	
			
			return dotShapeModels;
		}
		
		//---------------------------------------------------
		
		private static function getModel0():ShapeModel{
			var dot:ShapeModel;
			var name:String = "MB_._DOT";
			var dot_prim:Array = new Array();
			var dot_ref:Array = new Array();
			var dot_rel:Array = new Array();
			
			dot_prim.push(PrimitiveType.DOT);
			
			dot_ref.push(0,PrimitivePresets.ABS_LOWER_HALF);
			
			dot_rel.push(new RelationDescription(0,1,new PrimitivesRelation(RelationDescriptorType.LOCATION, LocationDescriptor.BELOW, 10)));
						
			dot = new ShapeModel(Character.DOT, dot_prim, dot_ref, dot_rel, new Array(), name);
			
			return dot;						
		}


	}
}